package com.bbcare.followup.plat.entity;

import java.io.Serializable;

import javax.persistence.Entity;

import com.bbcare.comm.DateUtil;

/*
 * @name:         方案任务信息实体类
 * @author:       DemonLee
 * @createTime:   2017.4.13
 * @description:  方案任务基本信息等
 * @modify:
 * 
 */

@Entity
public class FollowTask implements Serializable {
    private static final long serialVersionUID = 1L;
    // 任务模板id
    private String id;
    // 方案id
    private String schemeId;
    // 方案版本id
    private String schemeVersionid;
    // 任务名称
    private String taskName;
    // 任务描述
    private String taskIntro;
    // 任务序号，0为建档，其他从1开始递增
    private int seqNo;
    // 执行类型 0：应用后触发 1：纠正年龄触发 2：出生年龄触发 3：出院后触发
    private String executeType;
    // 任务周期
    private int cycleDay;
    // 任务前窗口期
    private int windowDay;
    // 任务警戒期
    private int warnDay;
    // 距离建档的执行天数 如纠正胎龄多长时间开始执行本次随访
    private int executeDay;
    // 随访提醒方式 0:无提醒 1:app应用 2:短信 3:app和短信同时提醒
    private String informFlag;
    // 创建人id
    private String authorId;
    // 更新时间
    private String updateTime;
    // 创建时间
    private String createTime;
    // 门诊地址
    private String executeAddress;
    // 操作流水
    private String updateAccept;
    // 任务类型
    private String taskType;
    // 下次任务id
    private String nextTaskId;
    // 任务后窗口期
    private int suffixWindowDay;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public String getSchemeId() {
        return schemeId;
    }

    public void setSchemeId(String schemeId) {
        this.schemeId = schemeId;
    }

    public void setSchemeVersionid(String schemeVersionid) {
        this.schemeVersionid = schemeVersionid;
    }

    public String getSchemeVersionid() {
        return schemeVersionid;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskIntro(String taskIntro) {
        this.taskIntro = taskIntro;
    }

    public String getTaskIntro() {
        return taskIntro;
    }

    public void setSeqNo(int seqNo) {
        this.seqNo = seqNo;
    }

    public int getSeqNo() {
        return seqNo;
    }

    public void setExecuteType(String executeType) {
        this.executeType = executeType;
    }

    public String getExecuteType() {
        return executeType;
    }

    public void setCycleDay(int cycleDay) {
        this.cycleDay = cycleDay;
    }

    public int getCycleDay() {
        return cycleDay;
    }

    public void setWindowDay(int windowDay) {
        this.windowDay = windowDay;
    }

    public int getWindowDay() {
        return windowDay;
    }

    public void setWarnDay(int warnDay) {
        this.warnDay = warnDay;
    }

    public int getWarnDay() {
        return warnDay;
    }

    public void setExecuteDay(int executeDay) {
        this.executeDay = executeDay;
    }

    public int getExecuteDay() {
        return executeDay;
    }

    public void setAuthorId(String authorId) {
        this.authorId = authorId;
    }

    public String getAuthorId() {
        return authorId;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = DateUtil.getTimeStampSec(updateTime);
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = DateUtil.getTimeStampSec(createTime);
    }

    public String getCreateTime() {
        return createTime;
    }

    public String getInformFlag() {
        return informFlag;
    }

    public void setInformFlag(String informFlag) {
        this.informFlag = informFlag;
    }

    public String getExecuteAddress() {
        return executeAddress;
    }

    public void setExecuteAddress(String executeAddress) {
        this.executeAddress = executeAddress;
    }

    public String getUpdateAccept() {
        return updateAccept;
    }

    public void setUpdateAccept(String updateAccept) {
        this.updateAccept = updateAccept;
    }

    public String getTaskType() {
        return taskType;
    }

    public void setTaskType(String taskType) {
        this.taskType = taskType;
    }

    public String getNextTaskId() {
        return nextTaskId;
    }

    public void setNextTaskId(String nextTaskId) {
        this.nextTaskId = nextTaskId;
    }

    public int getSuffixWindowDay() {
        return suffixWindowDay;
    }

    public void setSuffixWindowDay(int suffixWindowDay) {
        this.suffixWindowDay = suffixWindowDay;
    }
}
